package p1;

interface Doable{
}

class A implements Doable{}

class B implements Doable{}

public class Main1 {
	public static void main(String[] args) {
		A a = new A();
		B b = new B();
		
		Doable a1 = new B();
		Doable a2 = new A();
		
// Error: cannot instantiate an interface:		Doable d = new Doable();
		Doable[] arr = new Doable[10];
		arr[0] = a;
		arr[1] = b;
	}
}
